package cn.edu.ecut;

public class SchoolChild extends Student {

	public static void main(String[] args) {
		
		SchoolChild s = new SchoolChild();
		
		s.name = "张君宝" ; // public
		s.number = 10012002 ; // protected 
		s.age = 8 ;  // package-private 
		// s.head = "君宝的头" ; // private : The field Student.head is not visible ( 因为私有 )
		
		s.show();
		
	}

}
